﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Globalization;
using ProductKeyManager.UI;

namespace ProductKeyManager
{
    /// <summary>
    /// Interaction logic for AboutDialog.xaml
    /// </summary>

    public partial class AboutDialog : Window
    {
        public AboutDialog()
        {
            InitializeComponent();
        }

        private void WindowLoaded(object sender, RoutedEventArgs e)
        {
            this.Title = this.LoadStringResource("Title");
            lstAbout.Items.Add(this.LoadStringResource("Name"));
            lstAbout.Items.Add(string.Format("{0} {1} Matthew Newman", this.LoadStringResource("Copyright"), DateTime.Now.Year.ToString(CultureInfo.CurrentCulture)));
            lstAbout.Items.Add(string.Format("{0} {1}", this.LoadStringResource("Version"), System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString()));
        }
    }
}
